import {ref ,computed} from 'vue'
import {defineStore} from 'pinia'
import {getCategoryService} from '@/api/layout'
export const useCategoryStore = defineStore('category',()=>{
    const categorylist = ref([])
    const getCategory = async () => {
        const res = await getCategoryService()
        categorylist.value = res
      }
      return {
        categorylist,
        getCategory
      }
})